package test.gravity;

import android.content.Context;
import android.graphics.Bitmap;
import android.view.View;

public class Ball {
	private Bitmap myImage;
	private double myX, myY, myXV, myYV, myRadius;
	private int myId;
	public static int BallCount=1;
	public Ball(Context context, View v, double x, double y, double radius) {
		myX=x;
		myY=y;
		myRadius=radius;
		
		myYV=2;
		myXV=2;
	}
	public void step() {
		myX+=myXV;
		myY+=myYV;
		if (myY>0) {
			System.out.println("myY="+myY);
		}
	}
	public double getX() {return myX;}
	public void setX(double X) {myX=X;}
	public double getY() {return myY;}
	public void setY(double Y) {myY=Y;}
	public double getXV() {return myXV;}
	public void setXV(double XV) {myXV=XV;}
	public double getYV() {return myYV;}
	public void setYV(double YV) {myYV=YV;}
	public double getRadius() {return myRadius;}
	public int getId() {return myId;}
	public Bitmap getImage() {return myImage;}
}
